function preset()
{
    #=================================
    fig_name=Figure1
    fig_fmt=png
    #=================================
    bathy=../../gmt/Geersen_2018_Tectonics.nc
    cdp_num=cmp_num_25.txt
    # 透明度
    alpha_profile=50
    #图片大小
    fig_x=8
    fig_y=8
    fig_z=2
    #数据范围
    zmin=-20000
    zmax=1000
    lon_min=-71.9
    lon_max=-70.2
    lat_min=-21.3
    lat_max=-18.8
    # 视角
    ##方位角
    azimuth=200
    ##仰角
    elevation=20
    view=$azimuth/$elevation
    #range
    range_lon_lat=$lon_min/$lon_max/$lat_min/$lat_max
    zrange=$zmin/$zmax
    range=$range_lon_lat/$zrange
}

preset

gmt begin $fig_name $fig_fmt E1000
    gmt basemap -R$range -JM${fig_x}c -JZ${fig_z}c -Ba -Bza10000f1000g5000+l"Depth(m)" -BWSenZ+b -TdjBL+o0c/0c+w0.5c+f+l,,, -pz$view \
    --FONT_LABEL=8p,Helvetica-Bold --MAP_ANNOT_OFFSET_PRIMARY=0.05c --FONT_ANNOT_PRIMARY=8p,Helvetica-Bold --MAP_FRAME_PEN=0.5p,black #3D_framework
    gmt grdview $bathy -R$range -JM${fig_x}c -JZ${fig_z}c -Qs -Coceanic.cpt -pz$view -Iintens.grd #bathymetry
    for i in 25 04 23 17 13 16A 15 11 32 #add line name here
    do
        gmt plot3d seafloor_$i.txt -R$range -JM${fig_x}c -JZ${fig_z}c -Sp0.1p -pz$view #plot profile line
        gmt plot3d ${i}_ridge_latlong.txt -R$range -JM${fig_x}c -JZ${fig_z}c -Sx2p -Wlightblue -pz$view #plot continental ridge
        awk 'NR%2000==1{print $1,$2,$3}' seafloor_$i.txt > seafloor_cmp_$i.txt #cmp dots
        gmt plot3d seafloor_cmp_$i.txt -R$range -JM${fig_x}c -JZ${fig_z}c -pz$view -W0.03c,red -Sc-0.05c #plot cmp dots
        awk '{print $3}' MGL1610MC$i.annotation > tmp.txt #cmp names
        paste seafloor_cmp_$i.txt tmp.txt > cmp_num_$i.txt #cmp texts with location
        gmt pstext cmp_num_$i.txt -R$range -JM${fig_x}c -JZ${fig_z}c -pz$view -F+a-6+f3p,Bookman-Demi -D0.3c/0c -N -Z 
    done
    awk '{print $1,$2,$3+$4,$3}'  sediment_bar_3d.txt > sediment_bar_new.txt #sediment 柱状图
    gmt plot3d sediment_bar_new.txt -R$range -JM${fig_x}c -JZ${fig_z}c -So0.05ib -Gblue -Wthinner -pz$view
gmt end
open ${fig_name}.${fig_fmt}